package BasicModel.Element;

import java.util.LinkedList;

import BasicModel.Element.Component.Port;


public class OutputSet {
	//String name;
    LinkedList<Port> outputPortSet;


	public LinkedList<Port> getOutputPortSet() {
		return outputPortSet;
	}

	public OutputSet() {
		outputPortSet= new LinkedList<Port>();
	}
    public void addPort(Port port){
    	outputPortSet.add(port);
    }
	public Port findPort(String portName){
		for(Port temp: outputPortSet){
			if(temp.getPortName().equals(portName))
				return temp;
		}
		return null;
	}
}
